import requests



# for i in range(34):
#     print(i+1)
#

address = "郑州市新密市牛店镇"
# count = 0
# for i in str:
#     if "市" == i:
#         count += 1
# print(count)
print(address.count("市"))